;;
(function() {
    var index = 0;
    $("#brandList").on("click", "span", function(e) {
        var target = e.currentTarget;
        if (target.className === "bl-next") {
            var par = target.parentNode.children[2].children;
            par[index++].style.display = "none";
            index === 2 ? index = 0 : "";
            par[index].style.display = "block";
        } else if (target.className === "bl-prev") {
            var par = target.parentNode.children[2].children;
            par[index--].style.display = "none";
            index === -1 ? (index = 1) : "";
            par[index].style.display = "block";
        }
    })
})()